<ion-header-bar class="bar-stable " align-title="center">
  <div class="h1 title">登录</div>
</ion-header-bar>

<ion-content class="padding">
  <form class="list list-inset"  name="Form">
    <label class="item item-input" style="margin-bottom: 10px;">
      <input type="text" placeholder="请输入账号/手机号" ng-model="data.username" validator="required,maxlength=30,minlength=2" required-error-message="账号不能为空">
    </label>
    <label class="item item-input">
      <input type="password" placeholder="请输入密码" ng-model="data.password" validator="required,maxlength=30,minlength=2" required-error-message="密码不能为空">
    </label>
  </form>
  <div class="assertive text-center" ng-show="viewBag.error">{{viewBag.error}}</div>
  <button class="button button-block button-calm" ng-disabled="!checkValid(Form)" progress-button="signIn(data.username,data.password)">登录</button>
  <!--<button class="button button-block button-calm" ng-click="exit()">Exit</button>-->
  <div class="row row-no-padding">
    <a class="button button-clear button-positive" style="padding: 0;" ui-sref="access.companySimpleInfor">申请加入已有公司</a>
    <div class="col"></div>
    <a class="button button-clear button-positive" style="padding: 0;">注册公司</a>
  </div>
</ion-content>
